package cn.com.dal.dao.impl.hr;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.com.dal.dao.hr.UserDAO;
import cn.com.dal.dataobject.hr.UserDO;
import cn.com.support.dal.DAOException;
import cn.com.support.dal.DefaultDAO;
@Repository
public class UserDAOImpl<T extends UserDO> extends DefaultDAO<T> implements
		UserDAO<T> {

	@Override
	protected String getSatementPackage() {
		return "cn.com.dal.dao.hr.UserDAO";
	}

	@Override
	public List<UserDO> selectListByRole(Map<Object, Object> params) throws DAOException{
		try {
			return getSqlSession().selectList(
					getSatementPackage() + ".selectListByRole", params);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
